package com.springcloud.wujie_study_day01_eureka_client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname TestController
 * @Description TODO
 * @Date 2019/5/22 12:21
 * @Created by wujie
 */
@RestController
public class TestController {
    @Value("${server.port}")
    private String port;

     @RequestMapping(value = "test")
      public String test(String name){
         return name+"您此时访问的端口是："+port;
      }
}
